CSDV3017  ·  DEVOPS  ·  SCHOOL OF COMPUTER SCIENCE, UPES

Monolith vs Microservices,
Cloud & DevOps Resiliency

Lecture 8 — how an application's architecture shapes the way a DevOps team builds, deploys, and recovers it, and why the cloud changes the resiliency conversation.

InstructorDr. Mohsin Furkh Dar
SessionWeek 3 · Tue, 23 Jun 2026
Time12:00 – 13:00
UnitUnit III
I
II
III
IV
V
VI
VII
WHERE WE LEFT OFF

Recap & today's agenda

Lecture 7 · Done

DevOps Adoption, Lean & Kaizen

  • DevOps adoption as a people–process–tech journey
  • Maturity path: crawl → walk → run
  • Lean thinking & the 7 wastes (Muda)
  • Kaizen: continuous, incremental improvement
  • CALMS framework; common adoption challenges
Lecture 8 · Today

Architecture & Resiliency

  • Monolithic vs microservices architecture
  • What "DevOps architecture" actually means
  • How deployment & ownership change with architecture
  • Cloud-native resiliency: why it matters
  • Core resiliency patterns engineers rely on
THE NEXT QUESTION

Adoption answered "how we work." Now: "what we're building."

"The architecture of a system mirrors the communication structure of the organisation that builds it." — Conway's Law, still true in the cloud era

A team's culture and pipeline only go so far if the application itself is built as one giant, tightly coupled unit. Today we look at the two dominant shapes software takes — and how each one changes the DevOps story.

ARCHITECTURE STYLE 1

The monolith

One codebase, one deployable unit

All modules — UI, business logic, data access — are built, tested, and deployed together as a single artifact.

Simple to start, and for small teams or early-stage products, often the right call.

UI Layerweb / mobile views
Business Logicorders, payments, users
Data Access Layershared models
Single Databaseone schema
ONE BUILD · ONE DEPLOY · ONE SCALING UNIT
TRADE-OFFS

Monolith: what you gain, what you give up

Strengths
  • Simple to develop, test, and deploy early on
  • Easy local debugging — everything runs in one process
  • No network latency between internal modules
  • One deployment pipeline to maintain
Limitations
  • One small change forces a full redeploy
  • Scaling means scaling the whole app, not just the busy part
  • Codebase grows harder to understand over time
  • A bug in one module can take the entire system down
ARCHITECTURE STYLE 2

Microservices

Many small, independent services

Each service owns one business capability — its own code, data, and deployment pipeline — and talks to others over the network (APIs / events).

Teams can build, deploy, and scale each service on its own schedule.

Usersservice
Ordersservice
Paymentsservice
Inventoryservice
Notifyservice
EACH SERVICE: OWN CODE · OWN DATA · OWN DEPLOY
TRADE-OFFS

Microservices: what you gain, what you give up

Strengths
  • Each service deploys independently — faster releases
  • Scale only the services under real load
  • Teams can choose the best tech stack per service
  • A failure can be isolated to one service
Limitations
  • Distributed system complexity — network calls everywhere
  • Harder to debug and trace a request end-to-end
  • Needs strong DevOps maturity: CI/CD, monitoring, orchestration
  • Data consistency across services is genuinely hard
SIDE BY SIDE

Monolith vs microservices, at a glance

Dimension Monolith Microservices
Deployment Single unit, all-or-nothing Independent, per service
Scaling Scale the whole app Scale only what needs it
Team structure One team, shared codebase Small teams, one service each
Fault isolation One failure can affect all Failures can stay contained
Best fit Small teams, early-stage products Large, fast-growing, complex systems
CONNECTING TO DEVOPS

What "DevOps architecture" means

Architecture decides how DevOps gets practised day to day. The shape of the system sets the shape of the pipeline, the ownership model, and even the on-call rotation.

Pipeline shape

One pipeline vs many

A monolith needs one CI/CD pipeline; microservices need one per service, often templated.

Ownership

"You build it, you run it"

Microservices push full lifecycle ownership onto the small team that built the service.

Observability

Tracing across services

Distributed systems need distributed tracing and centralised logging to stay debuggable.

WHY THE CLOUD CHANGES THE GAME

Cloud & DevOps resiliency

What resiliency means here

Resiliency is a system's ability to keep serving users — or recover quickly — when something inevitably fails: a server, a network link, a dependency, even an entire data centre.

Why cloud makes it practical

On-demand compute, managed load balancers, and multi-region infrastructure let teams design for failure cheaply — something far harder to afford on fixed, on-premise hardware.

THE TOOLKIT

Core resiliency patterns

01

Redundancy

Run multiple instances so one failure isn't a service failure.

02

Auto-scaling

Add or remove capacity automatically as demand changes.

03

Load balancing

Spread traffic so no single instance is overwhelmed.

04

Health checks

Continuously probe instances; remove unhealthy ones from rotation.

05

Circuit breakers

Stop calling a failing dependency before it drags everything down.

06

Failover

Automatically switch to a standby region or instance on failure.

07

Retries with backoff

Retry transient failures intelligently, without overwhelming the system.

08

Graceful degradation

Keep core features working even when a non-critical part fails.

PUTTING IT TOGETHER

Architecture choice shapes resiliency strategy

Monolith

Resiliency at the edges

Typically resilient through redundant copies of the whole app behind a load balancer, plus a strong database backup & failover plan.

Microservices

Resiliency built into the mesh

Each service needs its own health checks, retries, and circuit breakers — resiliency becomes a property of every connection, not just the perimeter.

CLASS DISCUSSION

So which one should you choose?

Think it through

There's no universally "better" architecture

A two-person startup building an MVP and a large enterprise running a national e-commerce platform face very different problems. Discuss: team size, expected scale, time-to-market pressure, and existing DevOps maturity — which factors would push you toward a monolith, and which toward microservices?

01
Team size & structure
02
Expected scale & growth
03
Current DevOps maturity
WRAP-UP

Today, in three lines

  • Monoliths are simple to start with but scale and deploy as one unit; microservices scale and deploy independently but add distributed-systems complexity.
  • Architecture directly shapes your DevOps pipeline, ownership model, and observability needs.
  • Cloud infrastructure makes resiliency patterns — redundancy, auto-scaling, circuit breakers, failover — practical and affordable.
Next lecture · Lecture 9

Tue, 23 Jun 2026 · 14:00–15:00

Resilience process: Detect, Alert, Respond, Refine.

Before next class

Quick prep

Think of an app you use daily — would you guess it's built as a monolith or microservices, and why?

CSDV3017 · DEVOPS
SHEET 01/14